package com.example.maven.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;

@org.springframework.stereotype.Service
public class Service {
    private static final Logger logger = LoggerFactory.getLogger(Service.class);

    @Value("${app.message}")
    private String message;

    public String getMessage(){
        logger.info("Retrieving custom message with setting: {}", message);
        return message;
    }
}
